@charset "utf-8";

/*公共样式文件*/


/*a标签字体*/

$fontColor_a: #707070;
#wrapper {
    position: relative;
    width: 1330px;
    margin: 0 auto;
}
.nav-left{
    position: fixed;
    left: 2%;
    top:50%;
    transform: translateY(-50%);
    // height: 200px;
    z-index:21;
    border: 1px solid #e5e9ef;
    border-radius: 4px;
    
    dt{
        padding:5px;
        text-align: center;
        height: 25%;
        background: #f6f9fa;
        font-size: 12px;
        line-height: 50px;
        &:hover{
            background: #00a1d6;
            color: white;
        }
    }
}
#header_index,
{
    width: 1330px;
    margin: 0 auto;
    /*顶部*/
    .top {
        padding-left: 10px;
        height: 40px;
        line-height: 40px;
        background-color: #f0eeef;
        &:first-child {
            font-size: 0;
            & a {
                display: inline-block;
                color: $fontColor_a;
            }
        }
        .icon {
            margin-right: 10px;
            .icon_1 {
                span {
                    display: inline-block;
                    vertical-align: middle;
                    color: #de0202;
                }
                img {
                    width: 24px;
                    height: 24px;
                    display: inline-block;
                    vertical-align: middle;
                }
            }
        }
    }
}


/*导航*/


/*logo*/

.nav {
    position: relative;
    .logo {
        padding: 26px 0 52px 10px;
        width: 86px;
        height: 92px;
        img {
            width: 100%;
        }
    }
    .searchBar {
        position: relative;
        width: 854px;
        height: 40px;
        border: 1px solid #252b38;
        font-size: 0;
        margin: 52px 0 52px 172px;
        overflow: hidden;
        border-radius: 8px;
        input[type="text"] {
            float: left;
            width: 760px;
            height: 100%;
            vertical-align: top;
            border: none;
            margin-left: 24px;
            font-size: 18px;
            line-height: 40px;
            color: #cacaca;
        }
        input[type="image"] {
            float: left;
            width: 70px;
            height: 100%;
            vertical-align: top;
            background: #000000;
            box-sizing: border-box;
            text-align: center;
        }
    }
    .search_histry {
        position: absolute;
        top: 100px;
        left: 268px;
        & a {
            color: $fontColor_a;
            &:hover {
                color: #a5643c;
            }
        }
    }
    /*导航*/
    ul {
        width: 100%;
        background-color: #252b38;
        height: 44px;
        line-height: 44px;
        li {
            width: 24.8%;
            text-align: center;
            a {
                color: #fff;
            }
        }
        /*二级导航栏*/
        .navigation_hover:hover .navigation {
            display: block;
        }
        .navigation_hover {
            .navigation {
                display: none;
                width: 1330px;
                height: 255px;
                background: #dadada;
                position: absolute;
                z-index: 999;
                dl {
                    margin-top: 29px;
                    padding: 0 28px;
                    text-align: left;
                    border-left: 1px solid #fff;
                    height: 200px;
                    &:first-child {
                        padding: 0;
                        border: none;
                    }
                    &:nth-child(2),
                    &:nth-child(10),
                    &:nth-child(11) {
                        border: none;
                    }
                    .margin {
                        margin-top: 27px;
                    }
                    dt {
                        font-size: 14px;
                        line-height: 0;
                        font-weight: bold;
                        margin-bottom: 10px;
                        line-height: 18px;
                        color: #313131;
                    }
                    dd {
                        color: #535353;
                        line-height: 22px;
                    }
                }
            }
        }
    }
}


/*底部*/

.footer {
    width: 1330px;
    margin: 0 auto;
    .preferential {
        border-top: 1px solid #ccc;
        border-bottom: 1px solid #ccc;
        padding: 42px 0;
        ul {
            float: left;
            li {
                height: 50px;
                line-height: 50px;
                float: left;
                width: 262px;
                margin-left: 65px;
                border-right: 1px solid #ccc;
                font-size: 0;
                &:last-child {
                    border: 0;
                }
                div {
                    &:first-of-type,
                    &:last-of-type {
                        float: left;
                        display: inline-block;
                        vertical-align: middle;
                    }
                    p {
                        font-size: 18px;
                        line-height: 24px;
                        color: #313131;
                    }
                    p:last-child {
                        color: #707070;
                    }
                }
                div:first-child {
                    margin-right: 14px;
                }
            }
        }
    }
    .info {
        margin-top: 30px;
        padding: 0 58px;
        dl {
            float: left;
            padding: 0 98px;
            &:first-child {
                padding-left: 0;
            }
            dt {
                color: #535353;
                font-size: 16px;
                margin-bottom: 7px;
            }
            dd {
                color: $fontColor_a;
                line-height: 20px;
            }
        }
    }
    .code {
        margin: 0 0 25px 62px;
        h2 {
            color: $fontColor_a;
            margin-bottom: 14px;
        }
    }
    .fot_bt {
        display: block;
        height: 50px;
        padding-left: 10px;
        line-height: 50px;
        background: #252b38;
        color: #fff;
        span,
        a {
            color: #fff;
        }
    }
}

// 导航栏动画
@keyframes rotate {
    0% {
        border-top: none;
        animation-delay: 0.5s;
        transform: rotateX(0);
        color: #FFFFFF;
    }
    100% {
        border-top: 4px solid #A5643C;
        animation-delay: 0.5s;
        transform: rotateX(-360deg);
        color: #A5643C;
    }
}

#header_index {
    ul {
        li {
            // 第一个li不显示动画效果
            ~li {
                a {
                    display: block;
                    font-size: 14px;
                    // &:hover {
                    //     animation-name: rotate;
                    //     animation-timing-function: ease-in-out;
                    //     animation-fill-mode: both;
                    //     animation-duration: 1.5s;
                    // }
                }
            }
        }
    }
}

//商品购物车列表s
.order_detial {
    font-size: 18px;
    margin: 20px 0;
}

#tab1 {
    width: 100%;
    border-top: 1px solid transparent;
    margin-top: 30px;
    text-align: left;
    border-collapse: collapse;
    td,
    th {
        height: 40px;
        line-height: 40px;
        vertical-align: middle;
        padding: 0 10px;
    }
    tr {
        //单数tr
        &:nth-child(2n-1) {
            position: relative;
            transition: all 300ms;
            border: 1px solid #efefef;
            &:hover {
                box-shadow: 1px 1px 10px #b8b8b8;
            }
            &:first-child:hover {
                box-shadow: none;
            }
            input {
                vertical-align: middle;
                margin-top: -100px;
            }
        }
        //复数tr
        &:nth-child(2n) {
            background-color: #fffcfc;
            input {
                vertical-align: middle;
                margin-top: 3px;
            }
        }
    }
    th {
        background-color: #efefef;
        #shop_all {
            margin-top: 0;
        }
    }
    td {
        a,
        span {
            display: block;
        }
        label {
            img {
                margin-top: 20px;
            }
        }
    }
}

//商品购物车列表e
//商品交易流程s 可重用
@mixin header_content {
    position: relative;
    border-bottom: 1px solid #efefef;
    .shop_process1,
    .shop_process2,
    .shop_process3 {
        width: 180px;
        margin-top: 40px;
        position: absolute;
        overflow: hidden;
        z-index: 10;
        span {
            width: 30px;
            height: 30px;
            line-height: 30px;
            color: white;
            display: inline-block;
            text-align: center;
            border-radius: 50%;
            position: relative;
            z-index: 11;
            left: 75px;
            top: 16px;
        }
        h5 {
            text-align: center;
            font-size: 16px;
            font-weight: 100;
            margin-top: 25px;
        }
        .border1 {
            position: relative;
            z-index: 1;
        }
    }
    .shop_process1 {
        right: 0;
        .border1 {
            animation: border_run 1s linear 2s;
            animation-fill-mode: forwards;
        }
        span {
            animation: ball_run 1s linear 2.2s;
        }
    }
    .shop_process2 {
        right: 180px;
        .border1 {
            animation: border_run 1s linear 1s;
            animation-fill-mode: forwards;
        }
        span {
            animation: ball_run 1s linear 1.3s;
        }
    }
    .shop_process3 {
        right: 360px;
        .border1 {
            animation: border_run 1s linear;
            animation-fill-mode: forwards;
        }
        span {
            animation: ball_run 1s linear 0.2s;
        }
    }
}

@keyframes border_run {
    0% {
        transform: translateX(0px);
    }
    100% {
        transform: translateX(180px);
    }
}

@keyframes ball_run {
    20% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(0.5);
    }
    80% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}


//商品交易流程e


/* 可重用的按钮样式s */

@mixin input_reusing {
    width: 150px;
    height: 35px;
    border-radius: 5px;
    background-color: #584c4c;
    color: white;
    border: none;
    outline: medium;
    transition: all 500ms;
    &:hover {
        cursor: pointer;
        background-color: #443b3b;
    }
    &:active {
        background-color: #42cc63;
    }
}


